package cn.hengzhu.main_manager.repository.domain;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class CustomersAmountExample {
    /**
     *
     * @mbg.generated
     */
    protected String orderByClause;

    /**
     *
     * @mbg.generated
     */
    protected boolean distinct;

    /**
     *
     * @mbg.generated
     */
    protected List<Criteria> oredCriteria;

    /**
     *
     * @mbg.generated
     */
    public CustomersAmountExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    /**
     *
     * @mbg.generated
     */
    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    /**
     *
     * @mbg.generated
     */
    public String getOrderByClause() {
        return orderByClause;
    }

    /**
     *
     * @mbg.generated
     */
    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    /**
     *
     * @mbg.generated
     */
    public boolean isDistinct() {
        return distinct;
    }

    /**
     *
     * @mbg.generated
     */
    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    /**
     *
     * @mbg.generated
     */
    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    /**
     *
     * @mbg.generated
     */
    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    /**
     *
     * @mbg.generated
     */
    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    /**
     *
     * @mbg.generated
     */
    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    /**
     *
     * @mbg.generated
     */
    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    /**
     *
     * @mbg.generated
     */
    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andAmountIdIsNull() {
            addCriterion("AMOUNT_ID is null");
            return (Criteria) this;
        }

        public Criteria andAmountIdIsNotNull() {
            addCriterion("AMOUNT_ID is not null");
            return (Criteria) this;
        }

        public Criteria andAmountIdEqualTo(Integer value) {
            addCriterion("AMOUNT_ID =", value, "amountId");
            return (Criteria) this;
        }

        public Criteria andAmountIdNotEqualTo(Integer value) {
            addCriterion("AMOUNT_ID <>", value, "amountId");
            return (Criteria) this;
        }

        public Criteria andAmountIdGreaterThan(Integer value) {
            addCriterion("AMOUNT_ID >", value, "amountId");
            return (Criteria) this;
        }

        public Criteria andAmountIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("AMOUNT_ID >=", value, "amountId");
            return (Criteria) this;
        }

        public Criteria andAmountIdLessThan(Integer value) {
            addCriterion("AMOUNT_ID <", value, "amountId");
            return (Criteria) this;
        }

        public Criteria andAmountIdLessThanOrEqualTo(Integer value) {
            addCriterion("AMOUNT_ID <=", value, "amountId");
            return (Criteria) this;
        }

        public Criteria andAmountIdIn(List<Integer> values) {
            addCriterion("AMOUNT_ID in", values, "amountId");
            return (Criteria) this;
        }

        public Criteria andAmountIdNotIn(List<Integer> values) {
            addCriterion("AMOUNT_ID not in", values, "amountId");
            return (Criteria) this;
        }

        public Criteria andAmountIdBetween(Integer value1, Integer value2) {
            addCriterion("AMOUNT_ID between", value1, value2, "amountId");
            return (Criteria) this;
        }

        public Criteria andAmountIdNotBetween(Integer value1, Integer value2) {
            addCriterion("AMOUNT_ID not between", value1, value2, "amountId");
            return (Criteria) this;
        }

        public Criteria andOpenIdIsNull() {
            addCriterion("OPEN_ID is null");
            return (Criteria) this;
        }

        public Criteria andOpenIdIsNotNull() {
            addCriterion("OPEN_ID is not null");
            return (Criteria) this;
        }

        public Criteria andOpenIdEqualTo(String value) {
            addCriterion("OPEN_ID =", value, "openId");
            return (Criteria) this;
        }

        public Criteria andOpenIdNotEqualTo(String value) {
            addCriterion("OPEN_ID <>", value, "openId");
            return (Criteria) this;
        }

        public Criteria andOpenIdGreaterThan(String value) {
            addCriterion("OPEN_ID >", value, "openId");
            return (Criteria) this;
        }

        public Criteria andOpenIdGreaterThanOrEqualTo(String value) {
            addCriterion("OPEN_ID >=", value, "openId");
            return (Criteria) this;
        }

        public Criteria andOpenIdLessThan(String value) {
            addCriterion("OPEN_ID <", value, "openId");
            return (Criteria) this;
        }

        public Criteria andOpenIdLessThanOrEqualTo(String value) {
            addCriterion("OPEN_ID <=", value, "openId");
            return (Criteria) this;
        }

        public Criteria andOpenIdLike(String value) {
            addCriterion("OPEN_ID like", value, "openId");
            return (Criteria) this;
        }

        public Criteria andOpenIdNotLike(String value) {
            addCriterion("OPEN_ID not like", value, "openId");
            return (Criteria) this;
        }

        public Criteria andOpenIdIn(List<String> values) {
            addCriterion("OPEN_ID in", values, "openId");
            return (Criteria) this;
        }

        public Criteria andOpenIdNotIn(List<String> values) {
            addCriterion("OPEN_ID not in", values, "openId");
            return (Criteria) this;
        }

        public Criteria andOpenIdBetween(String value1, String value2) {
            addCriterion("OPEN_ID between", value1, value2, "openId");
            return (Criteria) this;
        }

        public Criteria andOpenIdNotBetween(String value1, String value2) {
            addCriterion("OPEN_ID not between", value1, value2, "openId");
            return (Criteria) this;
        }

        public Criteria andSourceIsNull() {
            addCriterion("SOURCE is null");
            return (Criteria) this;
        }

        public Criteria andSourceIsNotNull() {
            addCriterion("SOURCE is not null");
            return (Criteria) this;
        }

        public Criteria andSourceEqualTo(Byte value) {
            addCriterion("SOURCE =", value, "source");
            return (Criteria) this;
        }

        public Criteria andSourceNotEqualTo(Byte value) {
            addCriterion("SOURCE <>", value, "source");
            return (Criteria) this;
        }

        public Criteria andSourceGreaterThan(Byte value) {
            addCriterion("SOURCE >", value, "source");
            return (Criteria) this;
        }

        public Criteria andSourceGreaterThanOrEqualTo(Byte value) {
            addCriterion("SOURCE >=", value, "source");
            return (Criteria) this;
        }

        public Criteria andSourceLessThan(Byte value) {
            addCriterion("SOURCE <", value, "source");
            return (Criteria) this;
        }

        public Criteria andSourceLessThanOrEqualTo(Byte value) {
            addCriterion("SOURCE <=", value, "source");
            return (Criteria) this;
        }

        public Criteria andSourceIn(List<Byte> values) {
            addCriterion("SOURCE in", values, "source");
            return (Criteria) this;
        }

        public Criteria andSourceNotIn(List<Byte> values) {
            addCriterion("SOURCE not in", values, "source");
            return (Criteria) this;
        }

        public Criteria andSourceBetween(Byte value1, Byte value2) {
            addCriterion("SOURCE between", value1, value2, "source");
            return (Criteria) this;
        }

        public Criteria andSourceNotBetween(Byte value1, Byte value2) {
            addCriterion("SOURCE not between", value1, value2, "source");
            return (Criteria) this;
        }

        public Criteria andTotalAmountIsNull() {
            addCriterion("TOTAL_AMOUNT is null");
            return (Criteria) this;
        }

        public Criteria andTotalAmountIsNotNull() {
            addCriterion("TOTAL_AMOUNT is not null");
            return (Criteria) this;
        }

        public Criteria andTotalAmountEqualTo(BigDecimal value) {
            addCriterion("TOTAL_AMOUNT =", value, "totalAmount");
            return (Criteria) this;
        }

        public Criteria andTotalAmountNotEqualTo(BigDecimal value) {
            addCriterion("TOTAL_AMOUNT <>", value, "totalAmount");
            return (Criteria) this;
        }

        public Criteria andTotalAmountGreaterThan(BigDecimal value) {
            addCriterion("TOTAL_AMOUNT >", value, "totalAmount");
            return (Criteria) this;
        }

        public Criteria andTotalAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("TOTAL_AMOUNT >=", value, "totalAmount");
            return (Criteria) this;
        }

        public Criteria andTotalAmountLessThan(BigDecimal value) {
            addCriterion("TOTAL_AMOUNT <", value, "totalAmount");
            return (Criteria) this;
        }

        public Criteria andTotalAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("TOTAL_AMOUNT <=", value, "totalAmount");
            return (Criteria) this;
        }

        public Criteria andTotalAmountIn(List<BigDecimal> values) {
            addCriterion("TOTAL_AMOUNT in", values, "totalAmount");
            return (Criteria) this;
        }

        public Criteria andTotalAmountNotIn(List<BigDecimal> values) {
            addCriterion("TOTAL_AMOUNT not in", values, "totalAmount");
            return (Criteria) this;
        }

        public Criteria andTotalAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("TOTAL_AMOUNT between", value1, value2, "totalAmount");
            return (Criteria) this;
        }

        public Criteria andTotalAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("TOTAL_AMOUNT not between", value1, value2, "totalAmount");
            return (Criteria) this;
        }

        public Criteria andTotalPledgeIsNull() {
            addCriterion("TOTAL_PLEDGE is null");
            return (Criteria) this;
        }

        public Criteria andTotalPledgeIsNotNull() {
            addCriterion("TOTAL_PLEDGE is not null");
            return (Criteria) this;
        }

        public Criteria andTotalPledgeEqualTo(BigDecimal value) {
            addCriterion("TOTAL_PLEDGE =", value, "totalPledge");
            return (Criteria) this;
        }

        public Criteria andTotalPledgeNotEqualTo(BigDecimal value) {
            addCriterion("TOTAL_PLEDGE <>", value, "totalPledge");
            return (Criteria) this;
        }

        public Criteria andTotalPledgeGreaterThan(BigDecimal value) {
            addCriterion("TOTAL_PLEDGE >", value, "totalPledge");
            return (Criteria) this;
        }

        public Criteria andTotalPledgeGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("TOTAL_PLEDGE >=", value, "totalPledge");
            return (Criteria) this;
        }

        public Criteria andTotalPledgeLessThan(BigDecimal value) {
            addCriterion("TOTAL_PLEDGE <", value, "totalPledge");
            return (Criteria) this;
        }

        public Criteria andTotalPledgeLessThanOrEqualTo(BigDecimal value) {
            addCriterion("TOTAL_PLEDGE <=", value, "totalPledge");
            return (Criteria) this;
        }

        public Criteria andTotalPledgeIn(List<BigDecimal> values) {
            addCriterion("TOTAL_PLEDGE in", values, "totalPledge");
            return (Criteria) this;
        }

        public Criteria andTotalPledgeNotIn(List<BigDecimal> values) {
            addCriterion("TOTAL_PLEDGE not in", values, "totalPledge");
            return (Criteria) this;
        }

        public Criteria andTotalPledgeBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("TOTAL_PLEDGE between", value1, value2, "totalPledge");
            return (Criteria) this;
        }

        public Criteria andTotalPledgeNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("TOTAL_PLEDGE not between", value1, value2, "totalPledge");
            return (Criteria) this;
        }

        public Criteria andAssureAmountIsNull() {
            addCriterion("ASSURE_AMOUNT is null");
            return (Criteria) this;
        }

        public Criteria andAssureAmountIsNotNull() {
            addCriterion("ASSURE_AMOUNT is not null");
            return (Criteria) this;
        }

        public Criteria andAssureAmountEqualTo(BigDecimal value) {
            addCriterion("ASSURE_AMOUNT =", value, "assureAmount");
            return (Criteria) this;
        }

        public Criteria andAssureAmountNotEqualTo(BigDecimal value) {
            addCriterion("ASSURE_AMOUNT <>", value, "assureAmount");
            return (Criteria) this;
        }

        public Criteria andAssureAmountGreaterThan(BigDecimal value) {
            addCriterion("ASSURE_AMOUNT >", value, "assureAmount");
            return (Criteria) this;
        }

        public Criteria andAssureAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("ASSURE_AMOUNT >=", value, "assureAmount");
            return (Criteria) this;
        }

        public Criteria andAssureAmountLessThan(BigDecimal value) {
            addCriterion("ASSURE_AMOUNT <", value, "assureAmount");
            return (Criteria) this;
        }

        public Criteria andAssureAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("ASSURE_AMOUNT <=", value, "assureAmount");
            return (Criteria) this;
        }

        public Criteria andAssureAmountIn(List<BigDecimal> values) {
            addCriterion("ASSURE_AMOUNT in", values, "assureAmount");
            return (Criteria) this;
        }

        public Criteria andAssureAmountNotIn(List<BigDecimal> values) {
            addCriterion("ASSURE_AMOUNT not in", values, "assureAmount");
            return (Criteria) this;
        }

        public Criteria andAssureAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("ASSURE_AMOUNT between", value1, value2, "assureAmount");
            return (Criteria) this;
        }

        public Criteria andAssureAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("ASSURE_AMOUNT not between", value1, value2, "assureAmount");
            return (Criteria) this;
        }

        public Criteria andIsPayIsNull() {
            addCriterion("IS_PAY is null");
            return (Criteria) this;
        }

        public Criteria andIsPayIsNotNull() {
            addCriterion("IS_PAY is not null");
            return (Criteria) this;
        }

        public Criteria andIsPayEqualTo(Byte value) {
            addCriterion("IS_PAY =", value, "isPay");
            return (Criteria) this;
        }

        public Criteria andIsPayNotEqualTo(Byte value) {
            addCriterion("IS_PAY <>", value, "isPay");
            return (Criteria) this;
        }

        public Criteria andIsPayGreaterThan(Byte value) {
            addCriterion("IS_PAY >", value, "isPay");
            return (Criteria) this;
        }

        public Criteria andIsPayGreaterThanOrEqualTo(Byte value) {
            addCriterion("IS_PAY >=", value, "isPay");
            return (Criteria) this;
        }

        public Criteria andIsPayLessThan(Byte value) {
            addCriterion("IS_PAY <", value, "isPay");
            return (Criteria) this;
        }

        public Criteria andIsPayLessThanOrEqualTo(Byte value) {
            addCriterion("IS_PAY <=", value, "isPay");
            return (Criteria) this;
        }

        public Criteria andIsPayIn(List<Byte> values) {
            addCriterion("IS_PAY in", values, "isPay");
            return (Criteria) this;
        }

        public Criteria andIsPayNotIn(List<Byte> values) {
            addCriterion("IS_PAY not in", values, "isPay");
            return (Criteria) this;
        }

        public Criteria andIsPayBetween(Byte value1, Byte value2) {
            addCriterion("IS_PAY between", value1, value2, "isPay");
            return (Criteria) this;
        }

        public Criteria andIsPayNotBetween(Byte value1, Byte value2) {
            addCriterion("IS_PAY not between", value1, value2, "isPay");
            return (Criteria) this;
        }

        public Criteria andAssureTransactionIdIsNull() {
            addCriterion("ASSURE_TRANSACTION_ID is null");
            return (Criteria) this;
        }

        public Criteria andAssureTransactionIdIsNotNull() {
            addCriterion("ASSURE_TRANSACTION_ID is not null");
            return (Criteria) this;
        }

        public Criteria andAssureTransactionIdEqualTo(String value) {
            addCriterion("ASSURE_TRANSACTION_ID =", value, "assureTransactionId");
            return (Criteria) this;
        }

        public Criteria andAssureTransactionIdNotEqualTo(String value) {
            addCriterion("ASSURE_TRANSACTION_ID <>", value, "assureTransactionId");
            return (Criteria) this;
        }

        public Criteria andAssureTransactionIdGreaterThan(String value) {
            addCriterion("ASSURE_TRANSACTION_ID >", value, "assureTransactionId");
            return (Criteria) this;
        }

        public Criteria andAssureTransactionIdGreaterThanOrEqualTo(String value) {
            addCriterion("ASSURE_TRANSACTION_ID >=", value, "assureTransactionId");
            return (Criteria) this;
        }

        public Criteria andAssureTransactionIdLessThan(String value) {
            addCriterion("ASSURE_TRANSACTION_ID <", value, "assureTransactionId");
            return (Criteria) this;
        }

        public Criteria andAssureTransactionIdLessThanOrEqualTo(String value) {
            addCriterion("ASSURE_TRANSACTION_ID <=", value, "assureTransactionId");
            return (Criteria) this;
        }

        public Criteria andAssureTransactionIdLike(String value) {
            addCriterion("ASSURE_TRANSACTION_ID like", value, "assureTransactionId");
            return (Criteria) this;
        }

        public Criteria andAssureTransactionIdNotLike(String value) {
            addCriterion("ASSURE_TRANSACTION_ID not like", value, "assureTransactionId");
            return (Criteria) this;
        }

        public Criteria andAssureTransactionIdIn(List<String> values) {
            addCriterion("ASSURE_TRANSACTION_ID in", values, "assureTransactionId");
            return (Criteria) this;
        }

        public Criteria andAssureTransactionIdNotIn(List<String> values) {
            addCriterion("ASSURE_TRANSACTION_ID not in", values, "assureTransactionId");
            return (Criteria) this;
        }

        public Criteria andAssureTransactionIdBetween(String value1, String value2) {
            addCriterion("ASSURE_TRANSACTION_ID between", value1, value2, "assureTransactionId");
            return (Criteria) this;
        }

        public Criteria andAssureTransactionIdNotBetween(String value1, String value2) {
            addCriterion("ASSURE_TRANSACTION_ID not between", value1, value2, "assureTransactionId");
            return (Criteria) this;
        }

        public Criteria andIntegralIsNull() {
            addCriterion("INTEGRAL is null");
            return (Criteria) this;
        }

        public Criteria andIntegralIsNotNull() {
            addCriterion("INTEGRAL is not null");
            return (Criteria) this;
        }

        public Criteria andIntegralEqualTo(Integer value) {
            addCriterion("INTEGRAL =", value, "integral");
            return (Criteria) this;
        }

        public Criteria andIntegralNotEqualTo(Integer value) {
            addCriterion("INTEGRAL <>", value, "integral");
            return (Criteria) this;
        }

        public Criteria andIntegralGreaterThan(Integer value) {
            addCriterion("INTEGRAL >", value, "integral");
            return (Criteria) this;
        }

        public Criteria andIntegralGreaterThanOrEqualTo(Integer value) {
            addCriterion("INTEGRAL >=", value, "integral");
            return (Criteria) this;
        }

        public Criteria andIntegralLessThan(Integer value) {
            addCriterion("INTEGRAL <", value, "integral");
            return (Criteria) this;
        }

        public Criteria andIntegralLessThanOrEqualTo(Integer value) {
            addCriterion("INTEGRAL <=", value, "integral");
            return (Criteria) this;
        }

        public Criteria andIntegralIn(List<Integer> values) {
            addCriterion("INTEGRAL in", values, "integral");
            return (Criteria) this;
        }

        public Criteria andIntegralNotIn(List<Integer> values) {
            addCriterion("INTEGRAL not in", values, "integral");
            return (Criteria) this;
        }

        public Criteria andIntegralBetween(Integer value1, Integer value2) {
            addCriterion("INTEGRAL between", value1, value2, "integral");
            return (Criteria) this;
        }

        public Criteria andIntegralNotBetween(Integer value1, Integer value2) {
            addCriterion("INTEGRAL not between", value1, value2, "integral");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("CREATE_TIME is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("CREATE_TIME is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("CREATE_TIME =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("CREATE_TIME <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("CREATE_TIME >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("CREATE_TIME >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("CREATE_TIME <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("CREATE_TIME <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("CREATE_TIME in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("CREATE_TIME not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("CREATE_TIME between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("CREATE_TIME not between", value1, value2, "createTime");
            return (Criteria) this;
        }
    }

    /**
     *
     * @mbg.generated do_not_delete_during_merge
     */
    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    /**
     *
     * @mbg.generated
     */
    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}